It looks like you're new here. If you want to get involved, click one of these buttons!
papirosnik
Member
In this example below, MOUSE_DOWN event is dispatched only to F, E, D and C:Shoould be
... only to F, E, D and B
Comments
Likes: antix
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
Here's the full code I wrote
A, B, D, E, C, F
(as expected for a recursive traversal parents drawn before children)
The order for touch events is
F, C, E, D, B, A
(as expected for recursion with children touched before parents -- and children in reverse order)
If stop propagation is run after C is processed (as in the code), then the touch event is processed in
F, C only
So the documentation is not really correct but it gives the right idea. Perhaps it is somewhat oversimplified. The Gideros programmer doesn't need to know the exact order, typically.
https://github.com/gideros/gideros
https://www.youtube.com/c/JohnBlackburn1975
but my mistake helped to clarify things )
Thank for your explanation.
Likes: john26, MoKaLux